<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>My Project: TiXmlVisitor类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_ti_xml_visitor-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TiXmlVisitor类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="tinyxml_8h_source.html">tinyxml.h</a>&gt;</code></p>
<div class="dynheader">
类 TiXmlVisitor 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_ti_xml_visitor.png" usemap="#TiXmlVisitor_map" alt=""/>
  <map id="TiXmlVisitor_map" name="TiXmlVisitor_map">
<area href="class_ti_xml_printer.html" alt="TiXmlPrinter" shape="rect" coords="0,56,81,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a276c739ec4701f27c3f86b8ead095e5a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#a276c739ec4701f27c3f86b8ead095e5a">~TiXmlVisitor</a> ()</td></tr>
<tr class="separator:a276c739ec4701f27c3f86b8ead095e5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2661534963f39b74e29d1fc57918ab73"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#a2661534963f39b74e29d1fc57918ab73">VisitEnter</a> (const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;doc)</td></tr>
<tr class="memdesc:a2661534963f39b74e29d1fc57918ab73"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a document.  <a href="#a2661534963f39b74e29d1fc57918ab73">更多...</a><br /></td></tr>
<tr class="separator:a2661534963f39b74e29d1fc57918ab73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8edb6c4d3e7db94bc2e7e79c7b12e028"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#a8edb6c4d3e7db94bc2e7e79c7b12e028">VisitExit</a> (const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;doc)</td></tr>
<tr class="memdesc:a8edb6c4d3e7db94bc2e7e79c7b12e028"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a document.  <a href="#a8edb6c4d3e7db94bc2e7e79c7b12e028">更多...</a><br /></td></tr>
<tr class="separator:a8edb6c4d3e7db94bc2e7e79c7b12e028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3049fd47be339fd3caf561ec78754ac6"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#a3049fd47be339fd3caf561ec78754ac6">VisitEnter</a> (const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;element, const <a class="el" href="class_ti_xml_attribute.html">TiXmlAttribute</a> *firstAttribute)</td></tr>
<tr class="memdesc:a3049fd47be339fd3caf561ec78754ac6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an element.  <a href="#a3049fd47be339fd3caf561ec78754ac6">更多...</a><br /></td></tr>
<tr class="separator:a3049fd47be339fd3caf561ec78754ac6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab20597dab9db5818ebba675846f717fe"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#ab20597dab9db5818ebba675846f717fe">VisitExit</a> (const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;element)</td></tr>
<tr class="memdesc:ab20597dab9db5818ebba675846f717fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an element.  <a href="#ab20597dab9db5818ebba675846f717fe">更多...</a><br /></td></tr>
<tr class="separator:ab20597dab9db5818ebba675846f717fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53f2b1069cb2ac8169be1fecefa26d4f"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#a53f2b1069cb2ac8169be1fecefa26d4f">Visit</a> (const <a class="el" href="class_ti_xml_declaration.html">TiXmlDeclaration</a> &amp;declaration)</td></tr>
<tr class="memdesc:a53f2b1069cb2ac8169be1fecefa26d4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a declaration.  <a href="#a53f2b1069cb2ac8169be1fecefa26d4f">更多...</a><br /></td></tr>
<tr class="separator:a53f2b1069cb2ac8169be1fecefa26d4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d2b6e4f42f153243cc595ae0bc78306"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#a0d2b6e4f42f153243cc595ae0bc78306">Visit</a> (const <a class="el" href="class_ti_xml_text.html">TiXmlText</a> &amp;text)</td></tr>
<tr class="memdesc:a0d2b6e4f42f153243cc595ae0bc78306"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a text node.  <a href="#a0d2b6e4f42f153243cc595ae0bc78306">更多...</a><br /></td></tr>
<tr class="separator:a0d2b6e4f42f153243cc595ae0bc78306"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c615a6011e312e6da528f2b666b03b8"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#a5c615a6011e312e6da528f2b666b03b8">Visit</a> (const <a class="el" href="class_ti_xml_comment.html">TiXmlComment</a> &amp;comment)</td></tr>
<tr class="memdesc:a5c615a6011e312e6da528f2b666b03b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit a comment node.  <a href="#a5c615a6011e312e6da528f2b666b03b8">更多...</a><br /></td></tr>
<tr class="separator:a5c615a6011e312e6da528f2b666b03b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0eef40a3bcc80f9d12993935b3da1ab"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ti_xml_visitor.html#aa0eef40a3bcc80f9d12993935b3da1ab">Visit</a> (const <a class="el" href="class_ti_xml_unknown.html">TiXmlUnknown</a> &amp;unknown)</td></tr>
<tr class="memdesc:aa0eef40a3bcc80f9d12993935b3da1ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Visit an unknow node.  <a href="#aa0eef40a3bcc80f9d12993935b3da1ab">更多...</a><br /></td></tr>
<tr class="separator:aa0eef40a3bcc80f9d12993935b3da1ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>If you call the Accept() method, it requires being passed a <a class="el" href="class_ti_xml_visitor.html">TiXmlVisitor</a> class to handle callbacks. For nodes that contain other nodes (Document, Element) you will get called with a VisitEnter/VisitExit pair. Nodes that are always leaves are simple called with <a class="el" href="class_ti_xml_visitor.html#a53f2b1069cb2ac8169be1fecefa26d4f" title="Visit a declaration. ">Visit()</a>.</p>
<p>If you return 'true' from a Visit method, recursive parsing will continue. If you return false, <b>no children of this node or its sibilings</b> will be Visited.</p>
<p>All flavors of Visit methods have a default implementation that returns 'true' (continue visiting). You need to only override methods that are interesting to you.</p>
<p>Generally Accept() is called on the <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a>, although all nodes suppert Visiting.</p>
<p>You should never change the document from a callback.</p>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_ti_xml_node.html#acc0f88b7462c6cb73809d410a4f5bb86">TiXmlNode::Accept()</a> </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a276c739ec4701f27c3f86b8ead095e5a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual TiXmlVisitor::~TiXmlVisitor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a53f2b1069cb2ac8169be1fecefa26d4f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TiXmlVisitor::Visit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_declaration.html">TiXmlDeclaration</a> &amp;&#160;</td>
          <td class="paramname"><em>declaration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a declaration. </p>

<p>被 <a class="el" href="class_ti_xml_printer.html#adaf7eec4dc43ad071ff52b60361574f5">TiXmlPrinter</a> 重载.</p>

</div>
</div>
<a class="anchor" id="a0d2b6e4f42f153243cc595ae0bc78306"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TiXmlVisitor::Visit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_text.html">TiXmlText</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a text node. </p>

<p>被 <a class="el" href="class_ti_xml_printer.html#a0857c5d32c59b9a257f9a49cb9411df5">TiXmlPrinter</a> 重载.</p>

</div>
</div>
<a class="anchor" id="a5c615a6011e312e6da528f2b666b03b8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TiXmlVisitor::Visit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_comment.html">TiXmlComment</a> &amp;&#160;</td>
          <td class="paramname"><em>comment</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a comment node. </p>

<p>被 <a class="el" href="class_ti_xml_printer.html#a9870423f5603630e6142f6bdb66dfb57">TiXmlPrinter</a> 重载.</p>

</div>
</div>
<a class="anchor" id="aa0eef40a3bcc80f9d12993935b3da1ab"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TiXmlVisitor::Visit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_unknown.html">TiXmlUnknown</a> &amp;&#160;</td>
          <td class="paramname"><em>unknown</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit an unknow node. </p>

<p>被 <a class="el" href="class_ti_xml_printer.html#a08591a15c9a07afa83c24e08b03d6358">TiXmlPrinter</a> 重载.</p>

</div>
</div>
<a class="anchor" id="a2661534963f39b74e29d1fc57918ab73"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TiXmlVisitor::VisitEnter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;&#160;</td>
          <td class="paramname"><em>doc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a document. </p>

<p>被 <a class="el" href="class_ti_xml_printer.html#a2ec73087db26ff4d2c4316c56f861db7">TiXmlPrinter</a> 重载.</p>

</div>
</div>
<a class="anchor" id="a3049fd47be339fd3caf561ec78754ac6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TiXmlVisitor::VisitEnter </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;&#160;</td>
          <td class="paramname"><em>element</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_attribute.html">TiXmlAttribute</a> *&#160;</td>
          <td class="paramname"><em>firstAttribute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit an element. </p>

<p>被 <a class="el" href="class_ti_xml_printer.html#a6dccaf5ee4979f13877690afe28721e8">TiXmlPrinter</a> 重载.</p>

</div>
</div>
<a class="anchor" id="a8edb6c4d3e7db94bc2e7e79c7b12e028"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TiXmlVisitor::VisitExit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_document.html">TiXmlDocument</a> &amp;&#160;</td>
          <td class="paramname"><em>doc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit a document. </p>

<p>被 <a class="el" href="class_ti_xml_printer.html#a0a636046fa589b6d7f3e5bd025b3f33e">TiXmlPrinter</a> 重载.</p>

</div>
</div>
<a class="anchor" id="ab20597dab9db5818ebba675846f717fe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool TiXmlVisitor::VisitExit </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ti_xml_element.html">TiXmlElement</a> &amp;&#160;</td>
          <td class="paramname"><em>element</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Visit an element. </p>

<p>被 <a class="el" href="class_ti_xml_printer.html#ae6a1df8271df4bf62d7873c38e34aa69">TiXmlPrinter</a> 重载.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>M:/移动硬盘/曹健/DX3D完成作业/619/D3DX封装/src/<a class="el" href="tinyxml_8h_source.html">tinyxml.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2018年 七月 1日 星期日 22:10:11 , 为 My Project使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
